import request from '@/utils/request'

const {
  get: $get,
  post: $post,
  delete: $delete,
  download: $download
} = request

// 设施数量统计
export const api_facilityStatisticsPie = data =>{
  return $get('/alarm/alarmStatistics/cv/facilityStatisticsPie', data)
}
// 设施类型统计
export const api_facilityStatisticsColumnar = data =>{
  return $get('/alarm/alarmStatistics/cv/facilityStatisticsColumnar', data)
}
// 监测数据分析
export const api_facilityMonitorDataAnalysis = data =>{
  return $get('/alarm/alarmStatistics/cv/facilityMonitorDataAnalysis', data)
}
/**
 * 级联数据
 * @param {*} data {type: 'twoType' | 'threeTypeFacility' | 'threeTypeDevice'}
 * twoType 地市监测数据统计分析二级
 * threeTypeFacility 地市设施统计分析监测数据分析
 * threeTypeDevice 地市-设备统计分析监测数据分析
 * @returns 
 */
export const api_cascader = data =>{
  return $get(`/alarm/alarmStatistics/cv/cascader/select/${data.type}`)
}

// 设备数量统计
export const api_deviceStatisticsPie = data =>{
  return $get('/alarm/alarmStatistics/cv/deviceStatisticsPie', data)
}
// 设备类型统计
export const api_deviceStatisticsColumnar = data =>{
  return $get('/alarm/alarmStatistics/cv/deviceTypeStatisticsColumnar', data)
}
// 设备-监测数据分析
export const api_deviceMonitorDataAnalysis = data =>{
  return $get('/alarm/alarmStatistics/cv/deviceMonitorDataAnalysis', data)
}
// 设备情况统计
export const api_deviceTypeFoldLine = data =>{
  return $get('/alarm/alarmStatistics/cv/deviceTypeFoldLine', data)
}

// 监测数据数量统计
export const api_realHistoryPie = data =>{
  return $get('/alarm/alarmStatistics/cv/realHistoryPie', data)
}
// 监测数据类型统计
export const api_realHistoryColumnar = data =>{
  return $get('/alarm/alarmStatistics/cv/realHistoryColumnar', data)
}
// 监测数据-监测数据分析
export const api_realHistoryMonitorDataAnalysis = data =>{
  return $get('/alarm/alarmStatistics/cv/realHistoryMonitorDataAnalysis', data)
}
// 监测报警统计
export const api_alarmDayListAll = data =>{
  return $get('/alarm/alarmStatistics/alarmDayListAll', data)
}
// 监测报警统计-报警统计-左
export const api_alarmStatistics = data =>{
  return $get('/alarm/alarmStatistics/alarmStatistics', data)
}
// 监测报警统计-报警统计-右
export const api_alarmCityVersionColumnar = data =>{
  return $get('/alarm/alarmStatistics/cv/alarmCityVersionColumnar', data)
}
// 监测报警统计-报警区域分步
export const api_alarmCityVersionFoldLine = data =>{
  return $get('/alarm/alarmStatistics/cv/alarmCityVersionFoldLine', data)
}